package com.framework.loippi.dao;

import com.framework.loippi.entity.Subscribe;
import com.framework.loippi.mybatis.dao.GenericDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DAO - Subscribe(预约表)
 * 
 * @author wmj
 * @version 2.0
 */
public interface SubscribeDao  extends GenericDao<Subscribe, Long> {
	List<Subscribe> findListByPage(Object parameter);
        Long deletes(Object parameter);

    Long findSubNumByDate(Object createTime);

    List<Subscribe> findFinished(@Param("patientId")Long patientId, @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);

    List<Subscribe> findAllByPatientId(@Param("patientId")Long patientId, @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);

    List<Subscribe> findDoing(Long patientId);

    Integer findAllFinished(Long patientId);

    Integer findAllByPatientIdCount(Long patientId);

    List<Subscribe> findDid(Long patientId);

    List<Subscribe> findSicking(Long patientId);

    List<Subscribe> findSick(Long patientId);

    List<Subscribe> findByDateAndDoctorId(@Param(value="subscribeDate")String subscribeDate, @Param(value="doctorId")Long doctorId);

    String findSubscribeText();
}
